#ifndef CHATTING_ROOM_H
#define CHATTING_ROOM_H

#include <QDialog>
#include <QString>
#include <QPushButton>
#include <QVector>
#include <QVBoxLayout>
#include <QTimer>
#include "chatclient.h"

extern QString info;

namespace Ui {
class Chatting_room;
}

class Chatting_room : public QDialog
{
    Q_OBJECT
public:
    explicit Chatting_room(QWidget *parent = 0);
    ~Chatting_room();
private:
    Ui::Chatting_room *ui;
    QVector<QString> userList;
    std::string IP;
    QPushButton *userBt;
    QTimer *timer,*srtimer;
    ChatClient &chat_client;
    //

private slots:
    void getInfo(QString,Chatting_room *);
    void showHis();
    void on_Quit_clicked();
    void on_send_clicked();
    void showSyc();
};

#endif // CHATTING_ROOM_H
